Repository navigation
Fix cancellation test ordering and retain CI failure diagnostics - #88
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Truncating output before sanitization can strip credential-identifying context while retaining secret fragments in uploaded logs, creating a critical credential-exposure risk.
1 open issue
What changed in this PR
Improves cancellation-test reliability and failure diagnostics for Scout’s CI and release validation.
Changes:
- Waits for backend token capture before cancelling the single-operation UI test.
- Adds bounded UI state and background-failure details to checkpoint timeout messages.
- Introduces command-output capture and smoke helpers, with regression tests and seven-day failure-log artifacts.
| File | Description |
|---|---|
tests/WorkflowUiTests.cs |
Synchronizes cancellation with operation-token capture. |
tests/ListNavigationTests.cs |
Adds diagnostic context to UI checkpoint timeouts. |
.github/workflows/release.yml |
Wraps tests and smoke execution and uploads failure logs. |
.github/workflows/ci.yml |
Integrates capture helpers across managed and native validation jobs. |
.github/scripts/ci-smoke.ps1 |
Preserves managed smoke timeout, stderr, and exit-code checks. |
.github/scripts/ci-command.test.js |
Covers redaction, bounded output, and command-result preservation. |
.github/scripts/ci-command.js |
Adds output capture, credential filtering, metadata, and failure summaries. |
Review effort: Balanced
Comment on lines
+41
to
+42
| child.stdout.on('data', data => { process.stdout.write(data); stdout = tail(stdout + data); }); | ||
| child.stderr.on('data', data => { process.stderr.write(data); stderr = tail(stderr + data); }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The cancellation UI test could send Escape before its fake backend had captured the operation token. It now waits for token capture explicitly. UI checkpoint timeouts also report bounded state and the first background failure instead of only a generic deadline message.
CI and release tests retain bounded stdout/stderr tails for managed tests and managed/native smoke failures, redact known credential forms, and upload the logs for seven days. Failure summaries identify the phase, platform, SDK pin, and command exit code. Diagnostic-writing failures preserve the command result. Existing triggers, permissions, dependency pins, concurrency policies, and required test coverage are unchanged.
Validation:
Windows execution and both Native AOT architectures must pass PR CI before merge. Mock smoke does not establish live WinGet COM activation or interactive terminal parity. Credential redaction covers known forms, not arbitrary private payloads.